package com.solotiger.learn.andengine.simple;

import org.andengine.engine.camera.Camera;
import org.andengine.engine.options.EngineOptions;
import org.andengine.engine.options.ScreenOrientation;
import org.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.util.FPSLogger;
import org.andengine.ui.activity.SimpleBaseGameActivity;

/**
 * 类描述:字体
 * 
 * @Author:solotiger
 * @Date:2012-10-11
 */
public class LineExample extends SimpleBaseGameActivity {

	private static final int CAMERA_WIDTH = 320;
	private static final int CAMERA_HEIGHT = 480;

	private Camera andCamera;

	@Override
	public EngineOptions onCreateEngineOptions() {
		// 构建摄像机
		this.andCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
		return new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.andCamera);
	}

	@Override
	protected void onCreateResources() {

	}

	@Override
	protected Scene onCreateScene() {
		this.mEngine.registerUpdateHandler(new FPSLogger());
		// 构建场景
		Scene scene = new Scene();

		return null;
	}
}
